package com.miniportal.base.convert;

import com.miniportal.base.pojo.dto.BillingInformationDto;
import com.miniportal.base.pojo.dto.CommercialInfoDto;
import com.miniportal.base.pojo.entity.BillingInformation;
import com.miniportal.base.pojo.entity.CommercialInfo;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * TODO
 *
 * @author zhouje
 * @since 2022/5/30 23:52
 */
public interface CommercialInfoConvert {

    CommercialInfoConvert INSTANCE = Mappers.getMapper(CommercialInfoConvert.class);


    CommercialInfoDto billingInformationToDto(CommercialInfo commercialInfo);

    List<CommercialInfoDto> dosToDtos(List<CommercialInfo> commercialInfos);

    CommercialInfo dtoToDo(CommercialInfoDto commercialInfo);

}
